# basic_func.S - Basic functions 
.section .text
# int as_puts(char *s, int n)
.globl as_puts
	.type as_puts, @function
as_puts:
	pushl %ebx
	movl $4, %eax
	movl $1, %ebx
	movl 8(%esp), %ecx
	movl 12(%esp), %edx
	int $0x80
	pop %ebx
	ret

# void as_exit(void)
.globl as_exit
	.type as_exit, @function
as_exit:
	movl $1, %eax
	movl $0, %ebx
	int $0x80
